home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / e / misc.txt / 000318_fdc@panix.com_Wed Feb 17 14:57:51 2010.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: reader2.panix.com!panix!not-for-mail
  2. From: Frank da Cruz <fdc@panix.com>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: script file for auto dialing
  5. Date: Wed, 17 Feb 2010 19:57:00 +0000 (UTC)
  6. Organization: PANIX Public Access Internet and UNIX, NYC
  7. Lines: 46
  8. Message-ID: <slrnhnoigd.mm5.fdc@panix3.panix.com>
  9. References: <d9428617-3a70-4807-a391-12b64ebd86af@u9g2000yqb.googlegroups.com> <57930745-41d1-442a-bace-fb488a9f2c37@b9g2000pri.googlegroups.com>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: panix3.panix.com
  12. X-Trace: reader2.panix.com 1266436620 17798 166.84.1.3 (17 Feb 2010 19:57:00 GMT)
  13. X-Complaints-To: abuse@panix.com
  14. NNTP-Posting-Date: Wed, 17 Feb 2010 19:57:00 +0000 (UTC)
  15. User-Agent: slrn/0.9.8.0 (NetBSD)
  16. Xref: panix comp.protocols.kermit.misc:15918
  17.  
  18. On 2010-02-16, Mark Sapiro <mark@msapiro.net> wrote:
  19. : It should be easy enough to modify the script at:
  20. :
  21. :  ftp://kermit.columbia.edu/kermit/scripts/ckermit/autodial
  22. :
  23. : to accept a list, or perhaps one of the other scripts at:
  24. :
  25. :   http://www.columbia.edu/kermit/ckscripts.html#modm
  26. :
  27. : is closer to what you want.
  28. :
  29. If you mean, try a bunch of different numbers to reach one specific
  30. service or host, you can do that with a dialing directory, or you
  31. can actually put a list of numbers in the DIAL command itself,
  32. like this:
  33.  
  34.   dial {{firstnumber}{secondnumber}{thirdnumber}...{lastnumber}}
  35.  
  36. The curly braces are part of the command.  The technique is described here:
  37.  
  38.   http://www.columbia.edu/kermit/ckermit70.html#x2.1.16
  39.  
  40. If you mean dial a bunch of different hosts or services, one after the
  41. other, that would be a matter of parameterizing the autodial script,
  42. and then writing another short script to call it in a loop with the
  43. appropriate parameters for each host or service.
  44.  
  45. Or you could do it all in a single, simple script.
  46.  
  47.   declare \&a[] = firstnumber secondnumber .... lastnumber
  48.  
  49.   set port /dev/ttyS0    # or whatever
  50.   set speed 57600        # or whatever 
  51.   set modem type generic # or whatever
  52.   set flow rts/cts
  53.  
  54.   for i 1 \fdim(&a) 1 {
  55.       dial \&a[i]
  56.       if fail echo "DIAL \&a[i] failed - continuing..."
  57.       # put the code here to do whatever you want to do with the call...
  58.   }
  59.  
  60. If you have different access information for each host, that
  61. could go into parallel arrays.
  62.  
  63. - Frank